package net.qhzw.admin.controller;

import net.qhzw.admin.pojo.SelectBoxQuery;
import net.qhzw.admin.service.BoxService;
import net.qhzw.common.model.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("sys/selectBox")
@RestController
public class BoxController {


    @Autowired
    private BoxService boxService;


    /***
     * 获取下拉框
     * @param query
     * @return
     */
    @GetMapping
    public JsonResult getBox(SelectBoxQuery query) {
        return boxService.getBox(query);
    }


}
